package com.xinzhi.utils;


import com.xinzhi.service.BankServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
public class BankUtils {

    @SpringBootApplication
    public class BankApplication {

        @Bean
        public BankServiceImpl.BankAccount bankAccount() {
            return new BankServiceImpl.BankAccount(1000); // 初始账户余额为1000
        }

        public  void main(String[] args) {
            SpringApplication.run(BankApplication.class, args);
        }
    }

}
